<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
// you should use `$router`
/* @var think\Route $router */
$router->group('business', function () use($router) {
    //空进空出路由
    //列表
    $router->post('airlift/index', '\\catchAdmin\\business\\controller\\Airlift@index');
    //新建
    $router->post('airlift/create', '\\catchAdmin\\business\\controller\\Airlift@create');
    //更新
    $router->post('airlift/update', '\\catchAdmin\\business\\controller\\Airlift@update');
    //删除
    $router->post('airlift/delete', '\\catchAdmin\\business\\controller\\Airlift@delete');
    //打印
    $router->post('airlift/print', '\\catchAdmin\\business\\controller\\Airlift@print');
    //海进海出路由
    //列表
    $router->post('shipping/index', '\\catchAdmin\\business\\controller\\Shipping@index');
    //新建
    $router->post('shipping/create', '\\catchAdmin\\business\\controller\\Shipping@create');
    //更新
    $router->post('shipping/update', '\\catchAdmin\\business\\controller\\Shipping@update');
    //删除
    $router->post('shipping/delete', '\\catchAdmin\\business\\controller\\Shipping@delete');
    //打印
    $router->post('shipping/print', '\\catchAdmin\\business\\controller\\shipping@print');
    // 保税报关
    //列表
    $router->post('bonded/index', '\\catchAdmin\\business\\controller\\Bonded@index');
    //新建
    $router->post('bonded/create', '\\catchAdmin\\business\\controller\\Bonded@create');
    //更新
    $router->post('bonded/update', '\\catchAdmin\\business\\controller\\Bonded@update');
    //删除
    $router->post('bonded/delete', '\\catchAdmin\\business\\controller\\Bonded@delete');
    // 内贸业务
     //列表
    $router->post('trade/index', '\\catchAdmin\\business\\controller\\Trade@index');
    //新建
    $router->post('trade/create', '\\catchAdmin\\business\\controller\\Trade@create');
    //更新
    $router->post('trade/update', '\\catchAdmin\\business\\controller\\Trade@update');
    //删除
    $router->post('trade/delete', '\\catchAdmin\\business\\controller\\Trade@delete');
    //进出口订单首页统计
    $router->post('index/statistics', '\\catchAdmin\\business\\controller\\Index@statistics');

})->middleware('auth');
//查询委托订单
$router->post('business/airlift/getJobNumber', '\\catchAdmin\\business\\controller\\Airlift@getJobNumber');
//查询单条委托订单信息
$router->post('business/airlift/getJobNumberInfo', '\\catchAdmin\\business\\controller\\Airlift@getJobNumberInfo');